
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div class="table2TitleBg">
      <div class="table2TitleBg2">
      	<div class="table2Title"><div class="table2TitleLeft"><span><?php echo lang("assigment_page");?></span></div></div>
      </div>
    </div></td>
  </tr>
  <tr>

    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="table2LeftBorder"></td>
        <td><div class="mission">
          <div class="logo">
            <p><a href="/index.php/home/assignment/a_id/<?php echo $a_id;?>"><img src="/public/upload/logo/<?php if(!empty($assignmentinfo['b_logo'])) echo $assignmentinfo['b_logo'] ;else echo $assignmentinfo['c_logo']?>" width="68" height="68" border="0" /></a></p>
          </div>
        </div>
        <div class="missionDetail">
        <span style="color:#000; font-size:14px; font-weight:bold;"><?php echo splitx($assignmentinfo['a_title']);?></span>
        
      <?php if(!$is_view){?>
        <span style="float:right">
        <form action="<?php echo $www_site_url?>/index.php" method="post">
				<input type="hidden" name="action" value="home">
				<input type="hidden" name="op" value="apply">
				<input type="hidden" name="a_id" value="<?php echo $a_id;?>">
        <input type="submit" class="button" name="baoming" value="<?php echo lang("apply");?>">
        </form>
        </span>
      <?php }?>

          <br />
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="missionDetailTable">

              <tr>
                <td width="50%"><span class="title"> <?php echo lang('start_date')?>：</span><?php echo $assignmentinfo['a_sdate']?></td>
                <td><span class="title"> <?php echo lang('end_date')?>：</span><?php echo $assignmentinfo['a_edate']?></td>
                </tr>

              <tr>
                <td><span class="title"><?php echo lang('brands')?>：</span><?php echo splitx($assignmentinfo['c_name']);?></td>
                <td><span class="title"><?php echo lang('stores')?>：</span><?php echo splitx($assignmentinfo['cs_name']);?></td>
               </tr>    
               <tr>
                <td><span class="title"><?php echo lang("city_district");?>：</span><?php echo $assignmentinfo['cs_province']; if(!in_array($assignmentinfo['cs_city'],array('市辖区',"市辖县"))) echo " ".$assignmentinfo['cs_city']; echo " ".$assignmentinfo['cs_district']?></td>
                <td><span class="title"><?php echo lang("address_detail");?>：</span><?php echo splitx($assignmentinfo['cs_address']);?></td>
               </tr>
               <tr>
                <td><span class="title"><?php echo "电话"?>：</span><?php echo splitx($assignmentinfo['cs_phone']);?></td>
               </tr>
            </table>
            <br />
        </div>

              </td>
        <td class="table2RightBorder"></td>
      </tr>
      <tr>
        <td class="table2BottomLeft"></td>
        <td class="table2Bottom"></td>
        <td class="table2BottomRight"></td>
      </tr>

    </table></td>
  </tr>
</table>
<br />
<br />
<div id="tabsD" style="width:100%"> 
  <ul> 
    <li <?php  if(isset($_GET['view'])&&($_GET['view']=='assignment')) echo 'class="on"';?>><a href="/index.php/home/assignment/a_id/<?php echo $a_id;?>"><span ><?php echo lang("a_demand");?></span></a></li> 
    <li <?php if(isset($_GET['view'])&&($_GET['view']=='demand')) echo 'class="on"';?>><a href="/index.php/home/demand/a_id/<?php echo $a_id;?>"><span ><?php echo lang("a_desc");?></span></a></li> 
    <li <?php if(isset($_GET['view'])&&($_GET['view']=='reportpreview')) echo 'class="on"';?>><a href="/index.php/home/reportpreview/a_id/<?php echo $a_id;?>"  ><span><?php echo lang("preview")?></span></a></li> 
    <?php if($assignmentinfo['a_istest']==1){?><li <?php if(isset($_GET['view'])&&($_GET['view']=='quiz')) echo 'class="on"';?>><a href="/index.php/home/quiz/a_id/<?php echo $a_id;?>" ><span><?php echo lang("a_quiz")?></span></a></li> <?php }?>
    <li <?php if(isset($_GET['view'])&&($_GET['view']=='report')) echo 'class="on"';?>><a href="/index.php/home/report/a_id/<?php echo $a_id;?>" ><span><?php echo lang("fillout")?></span></a></li> 
    <li <?php if(isset($_GET['view'])&&($_GET['view']=='upload')) echo 'class="on"';?>><a href="/index.php/home/upload/a_id/<?php echo $a_id;?>" ><span><?php echo lang("uploadattachment")?></span></a></li> 
  </ul> 

</div>